home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 23
/
Amiga Format AFCD23 (Feb 1998, Issue 107).iso
/
-seriously_amiga-
/
shareware
/
sound
/
mrmpeg
/
listload.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-12-01
|
814b
|
26 lines
/* ListLoad.rexx */
options results; parse arg mode; address MrMPEG
ASLFR_InitialDrawer = 0x80080009; ASLFR_InitialFile = 0x80080008
MUIA_List_Active = 0x8042391c; MUIA_List_Entries = 0x80421654
MUIA_ShowMe = 0x80429ba8; MUIV_List_Active_Bottom = -3
MUIV_List_Active_Top = -2
if mode ~= 0 then
aslrequest TITLE '"Load list"' ATTRS ASLFR_InitialDrawer '"ENVARC:"',
ASLFR_InitialFile '"MrMPEG.list"'
else result = "ENV:MrMPEG.list"
if open('List', result, 'r') = 1 then do
if mode = 1 then call Clear.rexx
list ID SLIST ATTRS MUIA_List_Entries
entries = result
do while ~eof('List')
temp = readln('List')
list ID SLIST INSERT NODUP POS MUIV_List_Active_Bottom STRING temp
end
call close('List')
if entries = 0 then list ID SLIST ATTRS MUIA_List_Active MUIV_List_Active_Top
end
return